package com.leoren.blog.controller;

import com.leoren.blog.common.Result;
import com.leoren.blog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Leoren
 * @since 2023年11月24日
 */
@RestController
@RequestMapping("/article")
public class ArticleController {

    @Autowired
    private ArticleService articleService;

    @RequestMapping("/like")
    public Result<String> like(int userId, int contentId){

        return Result.OK();
    }

    @RequestMapping("/unLike")
    public Result<String> unLike(int userId, int contentId){

        return Result.OK();
    }


    @RequestMapping("/getHotContents")
    public Result<List<Integer>> getHotContents(){
        List<Integer> list = new ArrayList<>();


        return Result.OK(list);
    }

}
